Skip to main content

PathGraph

PathGraph[{v1,v2,…}] yields a path with vertices vi and edges between vi and vi+ 1 .

PathGraph[{e1,e2,…}] yields a path with edges ej.

PathGraph[{v1,v2,…},{e1,e2,…}] yields a path with vertices vi and edges ej.

PathGraph[{…,wi[vi,…],…},{…,wj[ej,…],…}] yields a path with vertex and edge properties defined by the symbolic wrappers wk.

PathGraph[{vi->vj,…}] uses rules vi->vj to specify a path.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.